STEP 12: The game is almost there, but it has a tricky logic error that we need to fix!

  • Run the game and enter error. What happens when you guess r more than once? We are told that r is a correct letter, but no additional r 's in the word error are revealed. Let's start fixing this!
  • In , add Set Value at Index in the if-block. Make sure it is indented two times!
  • Change the list index assignment to word_list[letter_index] = letter_guess

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)